#!/bin/bash

TAP=tap0

# /24 = 0
# /25 = 128
# /26 = 192
# /27 = 224
# /28 = 240
# /29 = 248
# /30 = 252

# Web Server:
# Pertenece a la red C

# Tablas de ruteo
# La red D no existe
# Redes G, H, I, K, F son PPP
# Sale todo por VRRP entre R4 y R5: 192.168.53.5
# Red A
route add -net 10.9.12.192 netmask 255.255.255.224 gw 192.168.53.5 $TAP 
# Red B
route add -net 10.11.23.0 netmask 255.255.255.0 gw 192.168.53.5 $TAP  
# Red E
route add -net 10.134.1.0 netmask 255.255.255.0 gw 192.168.53.5 $TAP 
# Red J 
route add -net 10.9.1.224 netmask 255.255.255.224 gw 192.168.53.5 $TAP
# Red L
route add -net 10.134.13.192 netmask 255.255.255.224 gw 192.168.53.5 $TAP
# Red M
route add -net 10.11.22.0 netmask 255.255.255.0 gw 192.168.53.5 $TAP
# Red N
route add -net 10.134.13.16 netmask 255.255.255.240 gw 192.168.53.5 $TAP 
# Red O
route add -net 10.134.13.128 netmask 255.255.255.192 gw 192.168.53.5 $TAP
# Red P
route add -net 10.134.5.128 netmask 255.255.255.128 gw 192.168.53.5 $TAP

#sh ../openvpn/crear-interfaces.sh
#openvpn ../openvpn/redC/webserver.conf

#route add -net 10.0.0.0/8 dev $TAP
#route add -net 192.168.53.0/24 dev $TAP
#route add -net 172.13.1.0/24 dev $TAP

#python ../servers/servers.py -h start
